﻿<UserControl x:Class="Microsoft.Research.ScientificWorkflow.UIDesigner.Monitor.ProcessingStatusView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="Auto" Width="Auto">
    <UserControl.Resources>
        <!--Style for all the TextBlock-->
        <Style TargetType="{x:Type TextBlock}" >
            <Setter Property="ToolTip" Value="{Binding RelativeSource={RelativeSource Self}, Path=Text }"/>
            <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
            <Setter Property="MaxHeight" Value="15" />
        </Style>
    </UserControl.Resources>
        <Grid>
        <ListView HorizontalAlignment="Stretch" VerticalAlignment="Stretch" IsSynchronizedWithCurrentItem="True" ItemsSource="{Binding Path=ProcessingStatusCollection}" AutomationProperties.AutomationId="AIdProcessingStatus">
                <ListView.View>
                <GridView  >
                    <GridViewColumn Header="Activity"  Width="150" DisplayMemberBinding="{Binding Path=Activity}" />
                    <GridViewColumn Header="Event" Width="100" DisplayMemberBinding="{Binding Path=Event}" />
                    <GridViewColumn Header="Time" Width="150" DisplayMemberBinding="{Binding Path=Time}" />
                    <GridViewColumn Header="Details" Width="150" DisplayMemberBinding="{Binding Path=Details}" />
                </GridView>
            </ListView.View>
        </ListView>
    </Grid>
</UserControl>